package com.bdqn.service;

import com.bdqn.mapper.BookOrderMapper;
import com.bdqn.pojo.BookOrder;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("bookOrderService")
public class BookOrderServiceImpl implements BookOrderService {
    @Resource
    BookOrderMapper bookOrderMapper;
    @Override
    public int del(Long id) {
        return bookOrderMapper.del(id);
    }

    @Override
    public int upd(Long id) {
        return bookOrderMapper.upd(id);
    }

    @Override
    public List<BookOrder> bookOrder() {
        return bookOrderMapper.bookOrder();
    }

    @Override
    public List<BookOrder> year() {
        return bookOrderMapper.year();
    }
}
